Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​ValueTuple<​T1, T2, T3, T4, T5, T6, T7, TRest>

Assembly: System.Runtime

Implemented Interfaces

Represents an n-value tuple, where n is 8 or greater.

Fields and Constants

public T1
Item1
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's first element.
public T2
Item2
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's second element.
public T3
Item3
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's third element.
public T4
Item4
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's fourth element.
public T5
Item5
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's fifth element.
public T6
Item6
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's sixth element.
public T7
Item7
Gets the value of the current <see cref="T:System.ValueTuple`8" /> instance's seventh element.
public TRest
Rest
Gets the current <see cref="T:System.ValueTuple`8" /> instance's remaining elements.

Methods

public int
CompareTo​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, TRest> other)
Compares the current <see cref="T:System.ValueTuple`8" /> instance to a specified <see cref="T:System.ValueTuple`8" /> instance.
Returns A signed integer that indicates the relative position of this instance and <paramref name="other" /> in the sort order, as shown in the following table. <list type="table"> <listheader> <term> Value</term> <description> Description</description> </listheader> <item> <term> A negative integer</term> <description> This instance precedes <paramref name="other" />.</description> </item> <item> <term> Zero</term> <description> This instance and <paramref name="other" /> have the same position in the sort order.</description> </item> <item> <term> A positive integer</term> <description> This instance follows <paramref name="other" />.</description> </item> </list>
other The tuple to compare with this instance.
public bool
Equals​(object obj)
Returns a value that indicates whether the current <see cref="T:System.ValueTuple`8" /> instance is equal to a specified object.
Returns <see langword="true" /> if the current instance is equal to the specified object; otherwise, <see langword="false" /> .
obj The object to compare with this instance.
public bool
Equals​(ValueTuple<​T1, T2, T3, T4, T5, T6, T7, TRest> other)
Returns a value that indicates whether the current <see cref="T:System.ValueTuple`8" /> instance is equal to a specified <see cref="T:System.ValueTuple`8" /> instance.
Returns <see langword="true" /> if the current instance is equal to the specified tuple; otherwise, <see langword="false" /> .
other The value tuple to compare with this instance.
public int
GetHashCode​()
Calculates the hash code for the current <see cref="T:System.ValueTuple`8" /> instance.
Returns The hash code for the current <see cref="T:System.ValueTuple`8" /> instance.
public string
ToString​()
Returns a string that represents the value of this <see cref="T:System.ValueTuple`8" /> instance.
Returns The string representation of this <see cref="T:System.ValueTuple`8" /> instance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .